<?php
//header("content-type:image/png");
//$image  =imagecreatefromwbmp("test.wbmp");
 //$black = imagecolorallocate ( $image ,  0 ,  0 ,  0 );
 //$lightgray = imagecolorallocate ( $image ,  128 ,  128 ,  128 );

//imagejepg($image);
//http://wafer-1256747487.cos.ap-guangzhou.myqcloud.com/ad94b5986e3f2f8ef3a00c0d115d534b-wx25fbbc634ac5586b.o6zAJs95ZB1n5I9WLxc7h8VMcMk4.QCMjWLuTx80Weceea2c71cd1574434acb62c665d7f89.jpg
//http://wafer-1256747487.cos.ap-guangzhou.myqcloud.com/cf792151556a4c2e78347f939296277b-wx25fbbc634ac5586b.o6zAJs95ZB1n5I9WLxc7h8VMcMk4.fXommQ65Hvt4eceea2c71cd1574434acb62c665d7f89.png
error_reporting(E_ERROR | E_PARSE);
$servername = "localhost";
$username = "root";
$password = "wx25fbbc634ac5586b";
$dbname = "card";
$openid=$_GET["openid"];
$name=$_GET["name"];
$phone=$_GET["phone"];
$occupation=$_GET["occupation"];
$company=$_GET["company"];
$section=$_GET["section"];
$telephone=$_GET["telephone"];
$phones=$_GET["phones"];
$email=$_GET["email"];
$fax=$_GET["fax"];
$address=$_GET["address"];
$webadd=$_GET["webadd"];
$shop=$_GET["shop"];
$wechat=$_GET["wechat"];
$tencent=$_GET["tencent"];
$microblog=$_GET["microblog"];
$public=$_GET["public"];
// 创建连接
$conn = new mysqli($servername, $username, $password, $dbname);
$program_char = "utf8" ;
mysqli_set_charset( $conn , $program_char );
$sql="INSERT INTO `mingpian` (`openid`, `phone`, `name`, `occupation`, `company`, `section`, `telephone`, `phones`, `email`, `fax`, `address`, `webadd`, `shop`, `wechat`, `tencent`, `microblog`, `public`) VALUES ('$openid', '$phone', '$name', '$occupation', '$company', '$section', '$telephone', '$phones', '$email', '$fax', '$address', '$webadd', '$shop', '$wechat', '$tencent', '$microblog', '$public');";
$result = mysqli_query($conn,$sql);
$res=mysqli_fetch_array($result);
echo "success";
?>